package demo.day10;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/1-08-01-16:19
 * @Description：demo.day10
 */
public class Fish extends Animal{

    public Fish(int legs) {
        super(legs);
    }
    public Fish(){
    }

    @Override
    public void walk() {
        System.out.println("鱼不需要腿走路，在水里游");
    }

    @Override
    public void eat() {
        System.out.println("小鱼正在进食！");
    }

    public static void main(String[] args) {
        Fish fish = new Fish();
        fish.eat();
        fish.walk();
    }
}
